package com.nowadays.mobile.mvp.model;

import com.nowadays.mobile.utils.ConstsDefine;

public class Focus {

  private volatile static Focus instance;

  private Focus() {
  }

  public static Focus getInstance() {
    if (instance == null) {
      synchronized (Focus.class) {
        if (instance == null) {
          instance = new Focus();
        }
      }
    }
    return instance;
  }

  private byte state = ConstsDefine.STATE.NONE;
  private int restTime;
  private int focusTime;  //当前设置的专注时长[随时修改，与当前正在专注的时长未必一致]
  private int runFocusTime; //当前正在专注的时长
  private boolean isPlayTick;
  private boolean isPlayAlaram;
  private boolean isPreventScreen;
  private boolean isVibrate;
  private boolean isAutoFocus; //是否自动专注
  private int longRestDelay; //长时休息延迟
  private int longRestTime; //长时休息

  public boolean isAutoFocus() {
    return isAutoFocus;
  }

  public void setAutoFocus(boolean autoFocus) {
    isAutoFocus = autoFocus;
  }

  public int getLongRestDelay() {
    return longRestDelay;
  }

  public void setLongRestDelay(int longRestDelay) {
    this.longRestDelay = longRestDelay;
  }

  public int getLongRestTime() {
    return longRestTime;
  }

  public void setLongRestTime(int longRestTime) {
    this.longRestTime = longRestTime;
  }

  public byte getState() {
    return state;
  }

  public void setState(byte state) {
    this.state = state;
  }

  public int getRestTime() {
    return restTime;
  }

  public void setRestTime(int restTime) {
    this.restTime = restTime;
  }

  public int getFocusTime() {
    return focusTime;
  }

  public int getRunFocusTime() {
    return runFocusTime;
  }

  public void setRunFocusTime(int runFocusTime) {
    this.runFocusTime = runFocusTime;
  }

  public void setFocusTime(int focusTime) {
    this.focusTime = focusTime;
  }

  public boolean isPlayTick() {
    return isPlayTick;
  }

  public void setPlayTick(boolean playTick) {
    isPlayTick = playTick;
  }

  public boolean isPlayAlaram() {
    return isPlayAlaram;
  }

  public void setPlayAlaram(boolean playAlaram) {
    isPlayAlaram = playAlaram;
  }

  public boolean isPreventScreen() {
    return isPreventScreen;
  }

  public void setPreventScreen(boolean preventScreen) {
    isPreventScreen = preventScreen;
  }

  public boolean isVibrate() {
    return isVibrate;
  }

  public void setVibrate(boolean vibrate) {
    isVibrate = vibrate;
  }
}
